package com.ruoyi.project.cms.pm.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.project.cms.sa.customer.domain.Customer;
import com.ruoyi.project.cms.sa.order.maintain.domain.Order;
import com.ruoyi.project.cms.sa.order.maintain.domain.ProductList;
import com.ruoyi.project.cms.sa.order.type.domain.Type;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author Joseph Wang
 * @version 1.0
 * @date 18/05/2020 10:15
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Project implements Serializable {
    //项目编号
    private String pid;
    //项目名称
    private String pname;
    //项目负责人
    private String pleader;
    //项目金额
    private double pvalue;
    //项目周期
    private Integer pcycle;
    //项目状态
    private Integer pstatus;
    //项目开始时间
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date projectStartTime;
    //项目结束时间
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date projectEndTime;
    //项目额外信息
    private String additionalInfo;
    //项目风格
    private String projectStyle;
    //项目创建者
    private String projectCreator;
    //项目内容
    private String projectContent;
    //项目类别
    private String projectType;

    //客户
    @TableField(exist = false)
    private Customer customer;
    //产品列表
    @TableField(exist = false)
    private ProductList productList;
    //订单
    @TableField(exist = false)
    private Order order;
    //订单类别
    @TableField(exist = false)
    private Type type;
}
